<?php

// in: $user

?>
<div class="user_tags">
  <?php foreach ($user->getTags() as $tag) : ?>
    <div class="tag" style="background-color: <?php echo $tag->getColor(); ?>" title="<?php echo $tag->getName(); ?>">
      <?php echo ((is_null($tag->getImage())) ? '' : '<img src="'. $_base_dir .'/apps/cms2/images/usertags/'. $tag->getImage() .'" />'); ?>
    </div>
  <?php endforeach;?>
</div>